package com.gpagers.kit.lucene;

public enum FieldType {
    内容("content"), 名字("name"), 路径("path"),大小("size");
    private final String name;

    private FieldType(String name) {
        this.name = name;
    }

    public String getValue() {
        return this.name;
    }
    
    /**
     * 枚举数组转换字符串数组
     * @param fields
     * @return
     */
    public static String[] tramsformToStr(FieldType[] fields){
    	String str[] = new String[fields.length];
    	for(int i=0;i<fields.length;i++){
    		str[i] = fields[i].getValue();
    	}
    	return str;
    }

}
